<?php
/**
 * @author yuanyitian
 * @date 2023/6/5 20:37
 */

require_once $_SERVER["DOCUMENT_ROOT"]."/oss/autoload.php";
require_once $_SERVER["DOCUMENT_ROOT"]."/utils/oss.php";
require_once $_SERVER["DOCUMENT_ROOT"]."/global/function.php";
require_once $_SERVER["DOCUMENT_ROOT"]."/utils/redis.php";
require_once $_SERVER["DOCUMENT_ROOT"]."/utils/base64_to_file.php";
require_once $_SERVER["DOCUMENT_ROOT"]."/sms/autoload.php";
require_once $_SERVER["DOCUMENT_ROOT"]."/utils/ali_sms.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/utils/wechat_pay.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/utils/WXBizDataCrypt.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/utils/ErrorCode.php";

//require_once $_SERVER["DOCUMENT_ROOT"]."/api/admin/account.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/admin/user.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/admin/index.php";
//
//
//
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/admin/category.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/admin/goods.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/admin/menu.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/admin/package.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/admin/org.php";
//
//
//
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/wechat/user.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/wechat/category.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/wechat/goods.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/wechat/order.php";
//require_once $_SERVER["DOCUMENT_ROOT"]."/api/wechat/task.php";


function classLoader_api($class)
{
    $path = str_replace('\\', DIRECTORY_SEPARATOR, $class);
    $file = $_SERVER["DOCUMENT_ROOT"] . DIRECTORY_SEPARATOR . $path . '.php';
    if (file_exists($file)) {
        require_once $file;
    }
}
spl_autoload_register('classLoader_api');
